﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using log4net;
using Iudicium.Autenticacion;

public partial class UserControls_ReportAlert : System.Web.UI.UserControl
{
    private static readonly ILog log = LogManager.GetLogger("LogFile");

    protected void Page_Load(object sender, EventArgs e)
    {
        UsuarioIdHiddenField.Value = Iudicium.Autenticacion.Autenticacion.GetCurrentUserId().ToString();
        TienePermisoHiddenField.Value = (Autenticacion.TienePermisos("VER_TRAMITES")).ToString();
    }

    protected void TramiteAlertDataSource_Selected(object sender, ObjectDataSourceStatusEventArgs e)
    {
        if (e.Exception != null)
        {
            log.Error("No se pudo obtener la lista de Tramites Atrasados mediante la busqueda", e.Exception);
            e.ExceptionHandled = true;
        }
    }
}
